﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.UserServices.Dto
{
    public class CreateUserDto
    {
 
        [Required(ErrorMessage = "Called required by the user")]
        [StringLength(256)]
        public string UserName { get; set; } = "";


        [Required(ErrorMessage = "Password is mandatory")]
        [StringLength(256)]
        public string PassWord { get; set; } = "";


        [Required(ErrorMessage = "Email is mandatory")]
        [StringLength(256)]
        [EmailAddress]
        public string EmailAddress { get; set; } = "";

        [StringLength(256)]
        public string Phone { get; set; } = "";

        public Guid[] PermissionsIds { get; set; }

        public Guid[] RoleIds { get; set; }
    }
}
